package sqlServer;

import java.util.HashMap;

import javax.swing.JTree;

import windowUnits.ProgressBarThread;



public class CreateUpdateItemThread extends Thread {
	
	private AppConnection appConn;
	private ProgressBarThread pg;
	private HashMap <Integer, InstalledMenus> installedMenusMap;
	private JTree tree;
	
	public CreateUpdateItemThread(AppConnection appConn,
									 ProgressBarThread pg,
									 HashMap <Integer, InstalledMenus> installedMenusMap, 
									 JTree tree) {
		this.appConn = appConn;
		this.pg = pg;
		this.installedMenusMap = installedMenusMap;
		this.tree = tree;
	}

	public void run() {
		
		appConn.createConnection();
		appConn.setWebPagesStructure(tree, installedMenusMap);
		//appConn.soapWebServise();
		pg.stopProgress();
	}
	

}
